from django.shortcuts import render
from django.http import HttpResponse
from django.http import JsonResponse
# Create your views here.


def get_data(request):
    data = {
        "message":"hello!this is a JSON reponse from Django!",
        "timestamp":"2024-12-01",
        "items":[1, 2, 3, 4, 5]
    }
    return JsonResponse(data)


def get_tool(request):
    # return HttpResponse('--这里是工具，请挑选你要使用的工具')
    return render(request, 'myapp/tool.html')








